#include "../includes/FileApi.h"
#include <iostream>

int main(int argc, char* argv[]){
    FileApi& file_api = FileApi::getInstance();
    if(argc != 2){
        std::cout << "Usage : " << argv[0] << " <file path>" << '\n';
        return 0;
    }
    std::string file_path(argv[1]);
    if(file_api.open(file_path) != -1){
        std::cout << "Create file success !\n";
    }
    else std::cout << "Create file error !\n";
    return 0;
}